cmake_minimum_required(VERSION 3.26)
project(y_sa C)

set(CMAKE_C_STANDARD 11)

include_directories(
        y_alg
        y_cli
        y_comm
        y_linklist
        y_ll
        y_log
        y_lora
        y_modbus
        y_nvs
        y_ota
        y_protocol
        y_ringbuf
        y_sys
        y_time
        y_timer
        y_treelist
        y_utils
        .
)

file(GLOB_RECURSE SOURCES
        y_alg/*.*
        y_cli/*.*
        y_comm/*.*
        y_linklist/*.*
        y_ll/*.*
        y_log/*.*
        y_lora/*.*
        y_modbus/*.*
        y_nvs/*.*
        y_ota/*.*
        y_protocol/*.*
        y_ringbuf/*.*
        y_sys/*.*
        y_time/*.*
        y_timer/*.*
        y_utils/*.*
        y_treelist/*.*
        y_utils/*.*
)

add_executable(y_sa test_case.c ${SOURCES})

